<?php
namespace app\index\model;

use think\Model;
use think\Db;

class Companymodel extends Model
{
    public function  registe($data){
        return  Db::table('rs_company')->insertGetId($data);
    }

    public function login($row){
    return Db::table('rs_company')->where($row)->find();
    }

    public  function emile($emaill){
        return  Db::table('rs_company')->where('emaill',$emaill)->find();
    }
    public  function company($compname){
        return  Db::table('rs_company')->where('compname',$compname)->find();
    }
    public function info1($id){
        return Db::table("rs_company")->where('id',$id)->select();
    }
    public function set1($data){
        return Db::table("rs_place")->insert($data);
    }

}